// @title           Golang Manager Admin API
// @version         1.0
// @description     这是一个基于Golang + Gin的现代化管理系统框架的API文档
// @termsOfService  http://swagger.io/terms/

// @contact.name   Xiaoyang
// @contact.url    http://www.swagger.io/support
// @contact.email  support@swagger.io

// @license.name  MIT
// @license.url   https://opensource.org/licenses/MIT

// @host      localhost:8080
// @BasePath  /api

// @securityDefinitions.apikey ApiKeyAuth
// @in header
// @name Authorization
// @description Type "Bearer" followed by a space and JWT token.

package main

import (
	"github.com/spf13/cobra"
	"golang-manage-admin/commands"
)

func main() {

	var companyModule = &cobra.Command{Use: "comm"}

	//API服务
	companyModule.AddCommand(commands.ApiCmd)
	//队列任务
	companyModule.AddCommand(commands.QueueCmd)
	//定时任务
	companyModule.AddCommand(commands.TimerCmd)
	//命令行命令
	companyModule.AddCommand(commands.ConsoleCmd)

	//执行命令
	_ = companyModule.Execute()
}
